package org.dragonnova.business.chdao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.dragonnova.business.model.User;
import org.springframework.stereotype.Component;

import com.base.pub.persistence.MyBatisDao;

@Component
@MyBatisDao
public interface WxAdminDao {
	public List<User> findWxAdmin(@Param("searchStr")String searchStr)throws Exception;

	public User findAdminByName(@Param("userName")String userName)throws Exception;

	public int updateAdmin(User user) throws Exception;

	public List<User> findUser(@Param("id")String id, @Param("searchText")String searchText)throws Exception;

	public int insertWxUser(User user)throws Exception;

	public int updateAdminIP(@Param("id")String id,@Param("ip")String ip)throws Exception;
}
